<script setup lang="ts">
  import { useSettingsStore } from './store'

  // App.vue - 应用程序入口
  // 初始化设置
  useSettingsStore()
</script>

<template>
  <div class="app-wrapper font-sans">
    <router-view></router-view>
  </div>
</template>

<style lang="scss">
  html,
  body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    user-select: none; /* 禁止全局文本选择 */
    background: #000; /* 黑色背景，确保无边框窗口边缘看起来干净 */
  }

  .app-wrapper {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 0;
  }

  // 添加基础响应式规则
  @media (width <= 768px) {
    .hidden-mobile {
      display: none !important;
    }

    button,
    .btn {
      min-height: 44px; // 增加移动端按钮的可点击区域
    }

    html,
    body,
    #app {
      overflow-x: hidden;
    }
  }

  // 调整滚动条样式
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  ::-webkit-scrollbar-track {
    background-color: #f1f5f9;
    border-radius: 9999px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 9999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: #cbd5e1;
  }
</style>
